package testplan.entities;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Release
{
    public enum Status { NEW, IN_PROGRESS, CLOSED }
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long key;
	@Persistent
	private String name;
	// foreign key to Project
	@Persistent
	private Long project;
	@Persistent
	private Status status;
	
	public Release(String name, long project, Status status) {
		super();
		this.name = name;
		this.project = project;
		this.status = status;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getProject() {
		return project;
	}

	public void setProject(long project) {
		this.project = project;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	public long getKey()
    {
		return key;
	}

    public void setKey(long key)
    {
        this.key = key;
    }
	
	

}
